package mate.events
{
	
	import classespinkpony.Problem;
	import classespinkpony.Profession;
	import classespinkpony.Specialization;
	import classespinkpony.Target;
	import classespinkpony.User;
	
	import flash.events.Event;
	
	public class CmsEvent extends Event
	{
		public static const UPDATEUSER:String = "updateUserActivationStatus";
		
		public static const DELETEPROFESSION:String = "deleteProfession";
		public static const DELETETARGET:String = "deleteTarget";
		public static const DELETESPECIALIZATION:String = "deleteSpecialization";
		public static const DELETEPROBLEM:String = "deleteProblem";
		
		public static const ADDSPECIALIZATION:String = "addSpecialization";
		public static const ADDPROBLEM:String = "addProblem";
		public static const ADDTARGET:String = "addTarget";
		public static const ADDPROFESSION:String = "addProfession";
		
		public static const INIT:String = "initCMS";
		
		private var _user:User;
		private var _numberParameter : Number;
		private var _stringParameter : String;
		
		private var _specialization : Specialization;
		private var _problem : Problem;
		private var _target : Target;
		private var _profession : Profession;
		
		[Bindable]
		public function set user(user:User):void{
			this._user = user;
		}
		public function get user():User{
			return this._user;
		}

		[Bindable]
		public function get numberParameter():Number
		{
			return _numberParameter;
		}

		public function set numberParameter(value:Number):void
		{
			_numberParameter = value;
		}

		[Bindable]
		public function get stringParameter():String
		{
			return _stringParameter;
		}

		public function set stringParameter(value:String):void
		{
			_stringParameter = value;
		}

		[Bindable]
		public function get specialization():Specialization
		{
			return _specialization;
		}

		public function set specialization(value:Specialization):void
		{
			_specialization = value;
		}

		[Bindable]
		public function get problem():Problem
		{
			return _problem;
		}

		public function set problem(value:Problem):void
		{
			_problem = value;
		}

		[Bindable]
		public function get targ():Target
		{
			return _target;
		}

		public function set targ(value:Target):void
		{
			_target = value;
		}

		[Bindable]
		public function get profession():Profession
		{
			return _profession;
		}

		public function set profession(value:Profession):void
		{
			_profession = value;
		}

		
		public function CmsEvent(type:String, bubbles:Boolean=true, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
		}
	}
}